<?php
//奖励明细
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return['set']=$this->plugin_setting('basic');
$return['setting']=$this->plugin_setting('basic');
if($_RQ['op']=='main'){
	$page = intval($_RQ['page']);
	$page = max(1, $page);
	$psize = 100;
	$pstart = ($page - 1) * $psize;
	$sql = 'select * from ' . tablename('jy_renwu_task_reward') . ' where mid = :mid and `get` = 1 and uniacid = :uniacid order by gettime desc limit ' . $pstart . ',' . $psize;
	$list = pdo_fetchall($sql, array(':mid' => $_SESSION['uid'], ':uniacid' => $_SESSION['uniacid']));
	set_html('title','全部商品');
	$return['list']=$list;
	exi($return);
}
